<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">项目基本情况</div>
<table class="t_css" id="basic_tab" width="100%" border="0" cellpadding="0"
	   cellspacing="1">
	<col style="width: 20%" />
	<col style="width: 30%" />
	<col style="width: 20%" />
	<col style="width: 30%" />
	<tr class="li_1">
		<td align="right">项目名称：</td>
		<td colspan="3">
			<x:out select="$xmlData/data/proposal/zh_title"/>
		</td>
	</tr>
	<tr>
		<td align="right">归口管理部门：</td>
		<td colspan="3">
			<x:out select="$xmlData/data/proposal/recomend_org_name" />
		</td>
	</tr>
	<tr>
		<td align="right">项目联系人姓名：</td>
		<td>
			<x:out select="$xmlData/data/proposal/contact_psn_cname" />
		</td>
		<td align="right">联系人手机：</td>
		<td>
			<x:out select="$xmlData/data/proposal/contact_psn_mobile" />
		</td>
	</tr>

	<c:set var="enterpriseScaleValue"><x:out select="$xmlData/data/proposal/enterprise_scale_value" /></c:set>
	<c:set var="technologyEnterpriseValue"><x:out select="$xmlData/data/proposal/technology_enterprise_value" /></c:set>
	<c:set var="nature_value"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" /></c:set>
	<c:if test="${fn:substring(nature_value,0,1) eq 'A'}">
		<tr>
			<td align="right">合作形式：</td>
			<td>

					<c:if test="${fn:contains(enterpriseScaleValue,'技术转让')}">
						<span class="tu_biao1"></span>技术转让
					</c:if>
					<c:if test="${!fn:contains(enterpriseScaleValue,'技术转让')}">
						<span class="tu_biao2"></span>技术转让
					</c:if>
					<c:if test="${fn:contains(enterpriseScaleValue,'技术许可')}">
						<span class="tu_biao1"></span>技术许可
					</c:if>
					<c:if test="${!fn:contains(enterpriseScaleValue,'技术许可')}">
						<span class="tu_biao2"></span>技术许可
					</c:if>
				<br><br>
				<c:if test="${fn:contains(enterpriseScaleValue,'作价入股')}">
					<span class="tu_biao1"></span>作价入股
				</c:if>
				<c:if test="${!fn:contains(enterpriseScaleValue,'作价入股')}">
					<span class="tu_biao2"></span>作价入股
				</c:if>
				<c:if test="${fn:contains(enterpriseScaleValue,'其他')}">
					<span class="tu_biao1"></span>其他
				</c:if>
				<c:if test="${!fn:contains(enterpriseScaleValue,'其他')}">
					<span class="tu_biao2"></span>其他
				</c:if>

			</td>
			<td align="right">所属领域：</td>
			<td>
				<x:out select="$xmlData/data/proposal/applicant_subject_name" />
			</td>
		</tr>
	</c:if>
		<tr>
			<td  align="right" >项目开始时间：</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/start_date" />
			</td>
			<td  align="right">项目结束时间：</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/end_date" />
			</td>
		</tr>
		<tr>
		<td  align="right" >
			项目报审级次<br>
			（省补助资金拨付所属财政局）：
		</td>
		<td align="center">
			<x:out select="$xmlData/data/proposal/sub_step_name" />
		</td>
		<td  align="right">
			项目申请金额<br>
			（万元）：</td>
		<td align="center">
			<x:out select="$xmlData/data/proposal/request_money1" />
		</td>
		</tr>

</table>
<div class="t_bar"><span class="color_red">*</span>合作单位信息</div>
<table  id="inland" border="0" cellspacing="0" cellpadding="0" class="table01 t_css" style="word-break: break-all;">
	<thead >
	<tr>
		<th align="center" width="7%">序号</th>
		<th align="center" width="10%">单位名称</th>
		<th align="center" width="13%">单位地址</th>
		<th align="center" width="9%">合作单位性质</th>
		<th align="center" width="9%">合作形式</th>
		<th align="center" width="10%">合作经费支出（万元）</th>
		<th align="center" width="10%">联系人</th>
		<th align="center" width="10%">电话</th>
<%--		<th align="center" width="12%">是否长三角区域</th>--%>
<%--		<th align="center" width="10%">是否县域单位（不含市辖区）</th>--%>
	</tr>
	</thead>
	<tbody id="inland_tab">
	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/inlands/inland" var="inland">
		<c:choose>
			<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr >

			<td align="center">
				<span   name="inlands/inland[${flag}${index}]@seq_no" ><x:out select="$inland/@seq_no"/></span>
			</td>
			<td >
				<x:out select="$inland/org_name" />
			</td>

			<td>
				<x:out select="$inland/org_address" />
			</td>

			<td>
				<x:out select="$inland/coop_org_type" />
			</td>

			<td>
				<x:out select="$inland/coop_formal" />
			</td>

			<td align="center">
				<x:out select="$inland/coop_fund_expend" />
			</td>

			<td align="left">
				<x:out select="$inland/psn_name" />
			</td>
			<td align="center">
				<x:out select="$inland/psn_phone" />
			</td>
<%--			<td align="center">--%>
<%--				<c:set var="triangle_region_value"><x:out select="$inland/triangle_region_value"/></c:set>--%>
<%--				<c:if test="${triangle_region_value==0 }">是</c:if><c:if test="${triangle_region_value==1 }">否</c:if>--%>
<%--			</td>--%>
<%--			<td align="center">--%>
<%--				<c:set var="county_units_value"><x:out select="$inland/county_units_value"/></c:set>--%>
<%--				<c:if test="${county_units_value==0 }">是</c:if><c:if test="${county_units_value==1 }">否</c:if>--%>
<%--			</td>--%>
		</tr>
		<c:set var="beggerClass"></c:set>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	</tbody>
</table>
<div class="t_bar">合作单位和项目技术负责人简述</div>
<table id="tblMileStones0" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<col style="width:34%"/>
	<col style="width:40%"/>
	<col style="width:13%"/>
	<col style="width:13%"/>
	<tr>
		<td colspan="4" style="word-break: break-all;">
			<pre><x:out select="$xmlData/data/project/summary0" /></pre>
		</td>
	</tr>

</table>


<script type="text/javascript">
	function initTreeValueExt(treeId, treeNode) {
		if ((treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
	}

	function initControlValue(objId){

		var name="";
		var obj=$("#"+objId);
		if(obj.is("select")){
			name=obj.attr("name");
			obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
			$("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
		}

		else if(obj.is(":radio")){
			name=obj.attr("name");
			if(obj.is(":checked")){//如果被选中
				//alert($("#"+objId).val());
				obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
				$("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
			}
			else{

				obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
			}
		}else if(obj.is(":checkbox")){
			name=obj.attr("name");
			if(obj.is(":checked"))//如果被选中
				obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
			else
				obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
		}else{
			name=obj.attr("id");
			obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
			obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
		}
	}



	$(function(){
		/*initControl11();*/
		$("#tab1").click();
		$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
		$("#fragment-tab1 select").addClass("select_width");

		$("table.t_css").each(function(){
			$(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
			$(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
		});
	})

</script>
